cmake_minimum_required(VERSION 3.8)
project(library_target)
#add_library(library_target_printer STATIC printer.cpp)
#add_library(library_target_printer SHARED printer.cpp)
#add_library(library_target_printer MODULE printer.cpp)
add_library(library_target_printer printer.cpp)
add_library(library_target_printer_wrapper printer_wrapper.cpp)
target_link_libraries(library_target_printer_wrapper library_target_printer)
include_directories(${PROJECT_SOURCE_DIR})
add_executable(library_target_program main.cpp)
#target_link_libraries(library_target_program library_target_printer library_target_printer_wrapper)
target_link_libraries(library_target_program library_target_printer_wrapper)
